package com.design.observer.weatherstation;

public class ObserverWeatherDemo {
    public static void main(String[] args) {
        WeatherStation weatherStation = new WeatherStation();
        Display display1 = new Display();
        Display display2 = new Display();

        weatherStation.registerObserver(display1);
        weatherStation.registerObserver(display2);

        weatherStation.setTemperature(25.5f);
        weatherStation.setTemperature(28.2f);
    }
}
